import request from '@/utils/request'

// 用户列表
export const getUserListApi = data => {
  return request.get('/ydd_user/list', {
    params: data
  })
}

// 用户添加
export const addUserApi = data => {
  return request.post('/ydd_user/add', data)
}

// 用户修改
export const editUserApi = data => {
  return request.post('/ydd_user/update', data)
}

// 用户删除
export const delUserApi = id => {
  return request.get('/ydd_user/del?id=' + id)
}

// 用户详情
export const getUserInfoApi = id => {
  return request.get('/ydd_user/rowInfo?id=' + id)
}
